package com.letu.core.excel.analyze;

import cn.hutool.http.HttpUtil;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

/**
 * @ClassName UrlExcelReader
 * @Description 通过url获取excel
 * @Author yuwx
 * @Date 2021/9/4 14:51
 * @Version 1.0
 **/
public class UrlExcelReader implements ExcelReader {


    @Override
    public InputStream read(String path) {

        InputStream inputStream = new ByteArrayInputStream(HttpUtil.downloadBytes(path));
        return inputStream;
    }


}
